package flc.ast.bean;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

//一张表
@Entity
public class PracticeTime {
    //主键唯一，自动增长
    @PrimaryKey(autoGenerate = true)
    private  int id;

    private long date;

    private long duration;
    private int count;

    public PracticeTime(long date, long duration, int count) {
        this.date = date;
        this.duration = duration;
        this.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
